﻿#!/usr/bin/env python
# -*- coding:utf-8 -*-

'a socket example which gets html data from www.sina.com.cn'

__author__='zhaoxp'

import socket

if __name__=='__main__':
	s=socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
	for data in ['Michael','Tracy','Sarah']:
		s.sendto(data,('127.0.0.1',9090))
		print s.recv(1024)
	s.close()
	print '-----end-----'